<?php

use think\migration\Seeder;

class IotUser extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $singleRow = [
            'username' => 'test',
            'password' => sha1('123456'),
            'scope' => ''
        ];

        $this->table('iot_user')->insert($singleRow)->save();
    }
}